package de.andreavicentini.teatralia.pages.home;

import org.magiclabs.htmlx.Area;
import org.magiclabs.htmlx.LocalizedPage;
import org.magiclabs.htmlx.PropertiesTextStructure;
import org.magiclabs.htmlx.TextStructure;

import de.andreavicentini.teatralia.generate.Home;
import de.andreavicentini.teatralia.generate.LayoutWithoutMenu;

public class HomePage extends LocalizedPage {

	public enum Keys implements TextStructure.TextKey {
		title, intro, intro2;
	}
	
	
//	public final static ProgrammaticTextStructure TEXT = new ProgrammaticTextStructure(){{
//		this.add(Keys.description)
//			.add(Locale.GERMAN, "Beschreibung")
//			.add(Locale.ITALIAN, "descrizione")
//		;
//		this.add(Keys.title)
//			.add(Locale.GERMAN, "Teatralia &mdash; Italienische Theatergruppe aus Stuttgart")
//			.add(Locale.ITALIAN, "Teatralia &mdash; Gruppo teatrale italiano di Stoccarda")
//		;
//	}};
	
	public HomePage(Area area) {
		super(new Home(), Keys.title, new LayoutWithoutMenu(), area, new PropertiesTextStructure(HomePage.class, "home"));
	}
	
	@Override
	public boolean hasFooter() {
		return false;
	}
}
